package com.kotlin.tsw.kotlinmall.ui.activity

import android.os.Bundle
import android.os.PersistableBundle
import android.view.View
import com.kotlin.tsw.baselibrary.ui.activity.BaseActivity
import com.kotlin.tsw.kotlinmall.R
import com.kotlin.tsw.usercenter.utils.UserPrefsUtils
import kotlinx.android.synthetic.main.activity_setting.*

class SettingActivity : BaseActivity(), View.OnClickListener {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_setting)
        initView()
    }

    private fun initView() {
        mLogoutBtn.setOnClickListener(this)
    }

    override fun onClick(v: View) {
        when (v.id) {
            R.id.mLogoutBtn -> {
                UserPrefsUtils().putUserInfo(null)
                finish()
            }
            R.id.mUserProtocolTv -> {
            }
            R.id.mFeedBackTv -> {
            }
            R.id.mAboutTv -> {
            }
        }
    }

}